package com.example.entity;

import com.example.common.PageEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author  guochao
 * @date  2022/1/6 20:52
 * @version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class Blog extends PageEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String title;
    private String content;
    private Long classifyId;
    private Integer status;
    @JsonIgnore
    private String createUserId;
    @JsonIgnore
    private Date createTime;
    @JsonIgnore
    private Date updateTime;
    @JsonIgnore
    private Date deleteTime;
    @JsonIgnore
    private Integer delStatus;
}
